package com.shijunhao.graduation.mapper;

import com.shijunhao.graduation.domain.bean.HotFiveInfo;
import com.shijunhao.graduation.domain.dto.BirthdayCulDto;
import com.shijunhao.graduation.domain.entity.BusinessHotInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shijunhao.graduation.domain.vo.PieCulVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shijunhao
 * @since 2022-04-10
 */
@Mapper
public interface BusinessHotInfoMapper extends BaseMapper<BusinessHotInfo> {
    /**
     * @return: java.util.List<com.shijunhao.graduation.domain.vo.GenderCulVo>
     * @author: shijunhao
     * @date: 2022/4/15 15:58
     * @description: 统计文章性别占比
     */
    List<PieCulVo> noteGenderInfo(Integer noteType);

    /**
     * @return: java.util.List<com.shijunhao.graduation.domain.dto.BirthdayCulDto>
     * @author: shijunhao
     * @date: 2022/4/15 17:08
     * @description: 统计文章年龄占比
     */
    List<BirthdayCulDto> noteAgeInfo(Integer noteType);

    /**
     * @return: java.util.List<com.shijunhao.graduation.domain.bean.HotFiveInfo>
     * @author: shijunhao
     * @date: 2022/5/29 22:02
     * @description: 文章浏览量前五
     */
    List<HotFiveInfo> hotNoteFive(Integer table,Integer type,Long uid);
    /**
     * @param table:
     * @return: java.util.List<com.shijunhao.graduation.domain.bean.HotFiveInfo>
     * @author: shijunhao
     * @date: 2022/5/29 22:04
     * @description: 论坛浏览量前五
     */
    List<HotFiveInfo> hotForumFive(Integer table,Long uid);

    /**
     * @param uid:
     * @return: java.util.List<com.shijunhao.graduation.domain.bean.HotFiveInfo>
     * @author: shijunhao
     * @date: 2022/5/29 22:21
     * @description: 论坛讨论前五
     */
    List<HotFiveInfo> disForumFive(Long uid);
}
